package com.deyuanyun.pic.ae.service;

import com.deyuanyun.pic.ae.controller.dto.AEPipeLineQuery;
import com.deyuanyun.pic.ae.controller.dto.EmergencyResourceQuery;
import com.deyuanyun.pic.ae.domain.AEPipeline;
import com.deyuanyun.pic.ae.domain.EmergencyResource;
import com.deyuanyun.pic.ae.domain.Sewer;
import com.deyuanyun.pic.ae.enumeration.DataStatedEnum;
import com.deyuanyun.pic.settings.support.cache.SessionCacheSupport;
import com.github.pagehelper.Page;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

import java.util.List;

/**
 * “管道沿线应急资源信息” 服务接口
 *
 * @author huanglw
 * @date  2016-11-9
 *
 * History: [修改人][时间][修改描述]
 */
public interface EmergencyResourceService {

    /**
     * 条件查询
     *
     * @param emergencyResourceQuery
     * @return
     */
    Page<EmergencyResource> query(EmergencyResourceQuery emergencyResourceQuery);

    /**
     * 根据id查询 管道沿线应急资源信息 详情
     *
     * @param id
     * @return
     */
    EmergencyResource find(String id);

    /**
     * 创建或者修改
     *
     * @param emergencyResource
     */
    int edit(EmergencyResource emergencyResource, List<String> imgs);

    /**
     * 审核
     *
     * @param emergencyResource
     * @return
     */
    int audit(EmergencyResource emergencyResource);

    /**
     * 根据id 删除
     *
     * @param id
     * @return
     */
    int delete(String id);
}
